These commands control BEAV's access to files. Files are loaded into buffers or are written from buffers. Commands that prompt for a file name also accept range parameters. Range parameters are always given in the numeric base of the current window. Thus if you are displaying data in decimal format then the range parameters must be entered in decimal.
The size of a file read or write can be limited by specifying a range. The range parameter specifies the offset into the file, not the buffer. Range parameters can be specified in these forms;
<file name> | <start address> | |
<file name> | <start address> | <end address> |
<file name> | <start address> | +<length> |
The first form causes the read or write to begin from the <start address> value until the end of the buffer on write or the end of the file on read.
The second form reads or writes from <start address> until <end address> non-inclusive.
The third form reads or writes from <start address> for <length> bytes.
Thus, if the command `file-read' is given and you enter at the prompt; main.obj 1000 +100. If the current display mode is hex, the file ``main.obj'' will be read from hex byte address 1000 to 10FF into the buffer.
678901234567890123456789012345678901234567890 Ctl-X Ctl-R file-read Sh-F2
Prompt for a file name and read that file into the current buffer. This overwrites the current contents of the buffer. The buffer name is not changed but the buffer file name is set to the new file name.
678901234567890123456789012345678901234567890 Ctl-X Ctl-S file-save Sh-F3
Write the current buffer out to the file if it has been changed. If the buffer has not been changed then do nothing.
678901234567890123456789012345678901234567890 Ctl-X V file-view
Prompt for a file name and read file into a new buffer and display in current window. Set to read-only mode.
678901234567890123456789012345678901234567890 Ctl-X Ctl-V file-visit Sh-F4
Prompt for a file name. If the buffer already exists then display it in the current window. Otherwise, read file into a new buffer and display in current window. If there is no such file then create it.
678901234567890123456789012345678901234567890 Esc U file-visit-split
Same as above but split current window and display new buffer. This displays the new buffer as well as the old buffer.
678901234567890123456789012345678901234567890 Ctl-X Ctl-W file-write Sh-F5
Prompt for a file name, then write the current buffer to that file.
678901234567890123456789012345678901234567890 Ctl-X Tab insert-file Sh-F8
Prompt for a file name and insert that file into the current buffer at the cursor position.
678901234567890123456789012345678901234567890 Ctl-X Return save-all-buffers Sh-F6
Write all buffers that have been changed to their respective files.